class CreatePromotionMails < ActiveRecord::Migration
  def change
    create_table :promotion_mails do |t|
      t.string :subject
      t.text :text_part
      t.text :html_part
      t.string :status
      t.belongs_to :created_by, index: true
      t.belongs_to :delivered_by, index: true
      t.timestamp :delivery_started_at
      t.timestamp :delivery_completed_at

      t.timestamps
    end
  end
end
